package com.runnnable;

public class ThRunnable {
    public static void main(String[] args) {
        TheadRb t=new TheadRb();
        Thread m1=new Thread(t,"m1线程:  ");
        Thread m2=new Thread(t,"m2线程:  ");
        m1.start();
        m2.start();
    }
}
class TheadRb implements  Runnable{

    @Override
    public void run() {
        for (int i = 0; i <100 ; i++) {
            try {
                Thread.sleep(500);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            System.out.println(Thread.currentThread().getName()+":"+i);


        }
    }
}